//
//  Contact.m
//  OC _ 数组字典复习
//
//  Created by dllo on 15/12/7.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Contact.h"

@implementation Contact

- (instancetype)initWithName:(NSString *)name phonenumber:(NSString *)phonenumber address:(NSString *)address{
    
    self = [super init];
    if (self) {
        _name = name;
        _phonenumber = phonenumber;
        _address = address;
        /*组名赋值*/
        self.group = [[name substringToIndex:1]uppercaseString];
    }
    return self;
}






@end
